#include <iostream>
#include "Base/BPL.h"
#include "GameState.h"
#include "SFMLContext.h"
#include <boost/lexical_cast.hpp>
 

using namespace std;

void main()
{
	try
    {
		BPL::Logger::setLogger(BPL::LoggerPtr(new ConsoleLogger));
		SFMLContext SFMLcontext;

        BPL::StatePtr gamestate(new GameState);
        SFMLcontext.getStateManager()->pushState(gamestate);

        SFMLcontext.launch();

    }
    catch(const BPL::Exception& e)
    {
        std::cerr << e.what();
    }
}
